We need to completely reallocate the buffers if we switch
has_alpha, because we may switch from render buffers to
texture.
else
glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT24, width, height);
}
+
+ priv->needs_render = TRUE;
}
static void
priv->needs_resize = TRUE;
}
- priv->needs_render = TRUE;
gtk_gl_area_maybe_allocate_buffers (area);
}
g_object_notify (G_OBJECT (area), "has-alpha");
- gtk_gl_area_maybe_allocate_buffers (area);
+ gtk_gl_area_delete_buffers (area);
}
}